TaskFactory(TResult) Constructor

Task Parallel System.Threading

Initializes a TaskFactory<(Of <(TResult>)>) instance with the default configuration.

Namespace:  System.Threading.Tasks
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
Public Sub New
C#
public TaskFactory()

Remarks

This constructor creates a TaskFactory<(Of <(TResult>)>) instance with a default configuration. The TaskCreationOptions property is initialized to TaskCreationOptions.None, the TaskContinuationOptions property is initialized to TaskContinuationOptions.None, and the TaskScheduler property is initialized to the current scheduler (see TaskScheduler.Current).

See Also